package com.dowsure.apisaas.model;

import com.dowsure.apisaas.annotation.RequestParamValidated;
import com.dowsure.apisaas.util.DowsureDateUtils;
import lombok.Data;

/**
 * @program: apisaas-sdk
 * @description: 请求强制划扣请求参数
 * @author: Dowsure
 * @create: 2022-02-15 18:43
 **/
@Data
public class PspRepaymentDataRequestParams {

    /**
     * 用户侧业务ID，该ID唯一，用于后续取消操作
     */
    @RequestParamValidated(msg = "用户侧业务ID", maxLen = 32)
    private String bizId;

    /**
     * 用户侧贷款编号
     */
    @RequestParamValidated(msg = "用户侧贷款编号", maxLen = 32)
    private String loanCode;

    /**
     * 用户侧贷款合同编号
     */
    @RequestParamValidated(msg = "用户侧贷款合同编号", maxLen = 100)
    private String loanContractNo;

    /**
     * 开始时间: YYYY-MM-DD hh:mm:dd
     */
    @RequestParamValidated(required = true, msg = "开始时间", format = DowsureDateUtils.YYYYMMDDHHMMSS)
    private String startTime;

    /**
     * 结束时间: YYYY-MM-DD hh:mm:dd
     */
    @RequestParamValidated(required = true, msg = "结束时间", format = DowsureDateUtils.YYYYMMDDHHMMSS)
    private String endTime;
}
